:root {
    --brand-red: #ff3b3b;
    --dark-bg: #0a0a0a;
    --text-muted: #b0b0b0;
}

.form-hero-section {
    position: relative;
    width: 100%;
    height: 65vh; /* اشغال بیش از نیمی از صفحه برای ابهت بیشتر */
    min-height: 500px;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    background-image: url('/src/img/bg1.png'); /* تصویر مدرن اداری */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* لایه اورلی برای خوانایی متن */
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, 
        rgba(10, 10, 10, 1) 0%, 
        rgba(10, 10, 10, 0.8) 40%, 
        rgba(255, 59, 59, 0.1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content-box {
    max-width: 700px;
    padding-left: 40px; /* مطابق اسکرین‌شات شما */
}

/* نشان‌گر وضعیت پورتال */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--brand-red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.pulse-dot {
    width: 6px; height: 6px; 
    background: var(--brand-red); 
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-red);
    animation: pulseIcon 2s infinite;
}

/* استایل تایتل اصلی - جایگزین Times New Roman */
.hero-main-title {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem); /* ریسپانسیو خودکار */
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
}

.text-red {
    color: var(--brand-red);
}

/* استایل پاراگراف توضیحات */
.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 550px;
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
}

/* انیمیشن نقطه تپنده */
@keyframes pulseIcon {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* بهینه‌سازی برای موبایل */
@media (max-width: 768px) {
    .hero-content-box { padding-left: 20px; }
    .hero-main-title { font-size: 2.2rem; }
    .form-hero-section { height: 50vh; }
}
 /* اطلاعات شرکت متقاضی دریافت خدمات صدور گواهینامه سیستم مدیریت  */
:root {
    --brand-red: #ff3b3b;
    --light-bg: #f8f9fa; /* بگراند بسیار نرم */
    --card-bg: #ffffff;
    --input-fill: #f1f3f5;
    --text-main: #1a1a1a;
    --text-muted: #718096;
    --border-light: #e2e8f0;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-form-section.light-theme {
    padding: 80px 0;
    background: var(--light-bg);
    min-height: 100vh;
}

/* محدود کردن عرض کل فرم */
.form-container-limited {
    max-width: 900px; /* عرض کمتر برای تمرکز بیشتر */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling - Light */
.section-title-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.bg-number {
    position: absolute;
    top: -35px; left: -10px;
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03); /* عدد محو در تم روشن */
    z-index: 0;
}

.section-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    position: relative;
    letter-spacing: -1px;
}

.red-stroke {
    color: var(--brand-red); /* در تم روشن، استروک قرمز را توپر کردیم برای خوانایی */
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Card Styling - Light & Clean */
.form-glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 45px;
    /* سایه بسیار نرم و حرفه‌ای */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.full-width { grid-column: span 2; }

/* Input Styling - Light Version */
.input-wrapper {
    position: relative;
    width: 100%;
}

.prime-input {
    width: 100%;
    height: 65px;
    background: var(--input-fill);
    border: 1px solid transparent; /* بردر مخفی در حالت عادی */
    border-radius: 12px;
    padding: 28px 20px 10px 20px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.prime-input:hover {
    background: #e9ecef;
}

.prime-input:focus {
    background: #ffffff;
    border-color: var(--brand-red);
    box-shadow: 0 10px 20px rgba(255, 59, 59, 0.05);
}

/* Label logic - Light */
.prime-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.prime-input:focus + .prime-label,
.prime-input:not(:placeholder-shown) + .prime-label {
    top: 15px;
    font-size: 0.75rem;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
}

/* المان متحرک زیر اینپوت */
.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.prime-input:focus ~ .input-focus-border {
    width: 100%;
}

.req { color: var(--brand-red); }

@media (max-width: 768px) {
    .form-grid-layout { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .section-main-title { font-size: 2rem; }
}
/* آدرس */
/* جداکننده بخش‌ها */
.form-section-divider {
    margin: 50px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inner-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* استایل اختصاصی چک‌باکس حرفه‌ای */
.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.custom-checkbox-wrapper input {
    display: none; /* پنهان کردن چک‌باکس زشت سیستم */
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.custom-checkbox-wrapper input:checked + .checkmark {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-wrapper input:checked + .checkmark:after {
    display: block;
}

/* انیمیشن برای غیرفعال کردن بخش آدرس عملیاتی */
.disabled-fields {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(1);
    transition: var(--transition-smooth);
}
/* تنظیم گرید برای ردیف‌های نام */
.name-row {
    grid-template-columns: 0.5fr 1fr 1fr !important;
}

.prefix-col {
    min-width: 100px;
}

/* استایل دراپ‌داون (Select) */
.prime-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

/* شمارشگر کاراکتر */
.char-counter {
    position: absolute;
    right: 5px;
    bottom: -22px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* وقتی فوکوس می‌شود شمارشگر پررنگ‌تر شود */
.prime-input:focus ~ .char-counter {
    color: var(--brand-red);
    opacity: 1;
}

/* رفع مشکل لیبل برای Select */
.prime-select:focus + .prime-label,
.prime-select:valid + .prime-label {
    top: 15px;
    font-size: 0.75rem;
    color: var(--brand-red);
}
/* اطلاعات مربوط به خدمات صدور گواهینامه */
/* کانتینر اصلی برای هم‌تراز شدن با بخش اول */
.form-container-main {
    max-width: 900px; /* این عدد را دقیقاً مطابق با بخش قبلی تنظیم کن */
    margin: 40px auto;
    padding: 0 20px;
}

/* کارت پرمیوم مشابه بخش اول */
.premium-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

/* هدر بخش */
.step-header {
    position: relative;
    margin-bottom: 30px;
}

.step-number-bg {
    position: absolute;
    top: -15px;
    left: -5px;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: -1;
    font-family: 'Inter', sans-serif;
}

.step-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.step-main-title .highlight {
    color: var(--brand-red);
}

.group-inner-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #a0aec0;
    margin-bottom: 25px;
}

/* استایل Radio & Checkbox */
.radio-flex-row {
    display: flex;
    gap: 30px;
}

.premium-selection {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.premium-selection input { display: none; }

.selection-control {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    transition: 0.3s;
    position: relative;
}

.radio-dot { border-radius: 50%; }
.check-box { border-radius: 5px; }

/* در صورت انتخاب شدن */
.premium-selection input:checked + .radio-dot {
    border-color: var(--brand-red);
    background: radial-gradient(circle, var(--brand-red) 40%, #fff 50%);
}

.premium-selection input:checked + .check-box {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.premium-selection input:checked + .check-box::after {
    content: "";
    position: absolute;
    left: 6px; top: 2px;
    width: 4px; height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.selection-text {
    font-size: 0.9rem;
    color: #4a5568;
}

/* گرید استانداردها */
.standards-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 40px;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-divider-light {
    height: 1px;
    background: #f0f0f0;
    margin: 35px 0;
}
/* مخفی کردن اولیه و انیمیشن ظهور */
.conditional-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
}

.conditional-section.is-visible {
    max-height: 200px; /* اندازه تقریبی برای نمایش */
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
}

/* ریسپانسیو سازی هوشمند */
@media (max-width: 850px) {
    .standards-premium-grid {
        grid-template-columns: repeat(2, 1fr); /* در تبلت دو ستونه */
    }
}

@media (max-width: 550px) {
    .standards-premium-grid {
        grid-template-columns: 1fr; /* در موبایل تک ستونه */
        gap: 15px;
    }
    
    .radio-flex-row {
        flex-direction: column; /* رادیوباتن‌ها زیر هم */
        gap: 15px;
    }

    .premium-card {
        padding: 25px 20px; /* پدینگ کمتر برای موبایل */
    }

    .step-main-title {
        font-size: 1.8rem;
    }
}
.field-helper-text {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 500;
}

/* انیمیشن برای تغییر رنگ متن در حالت هوور (اختیاری برای جذابیت بیشتر) */
.premium-selection:hover .selection-text {
    color: var(--brand-red);
    transition: 0.3s ease;
}
/* تعداد افراد و نفرات سازمان\ */

/* حذف فلش‌های پیش‌فرض اینپوت عدد برای حفظ ظاهر مینیمال */
.prime-input::-webkit-outer-spin-button,
.prime-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prime-input[type=number] {
    -moz-appearance: textfield;
}

/* اصلاح برای حالت Full Width در گرید */
.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .full-width {
        grid-column: span 1;
    }
}
/* دامنه کاربرد سیستم مدیریت پیاده سازی شده */
/* استایل اختصاصی برای محدوده دامنه کاربرد */
.prime-textarea {
    height: auto !important;
    min-height: 120px;
    padding-top: 35px !important; /* فضا برای لیبل شناور */
    resize: vertical; /* اجازه تغییر سایز عمودی توسط کاربر */
    line-height: 1.6;
    display: block;
}

/* هماهنگی انیمیشن لیبل برای Textarea */
.prime-textarea:focus + .prime-label,
.prime-textarea:not(:placeholder-shown) + .prime-label {
    top: 15px;
    font-size: 0.75rem;
    color: var(--brand-red);
}

/* پدینگ اضافه برای کانتینر در بخش دامنه */
.form-glass-card .full-width {
    margin-bottom: 10px;
}
/* اصلاح فاصله بین سکشن‌های فرم */
.form-container-limited {
    margin-top: 80px; /* ایجاد فاصله زیاد و دلباز بین هر بخش */
    margin-bottom: 20px;
    position: relative;
}

/* برای اولین سکشن (مثلاً اطلاعات شرکت) نیازی به فاصله از بالا نیست */
.form-container-limited:first-of-type {
    margin-top: 40px;
}

/* تنظیم کلی کانتینر برای نمایش صحیح اعداد پس‌زمینه */
.section-title-wrapper {
    position: relative;
    padding-top: 30px; /* ایجاد فضای تنفس برای عدد */
    margin-bottom: 40px;
    z-index: 1; /* ایجاد یک context جدید برای لایه‌بندی */
}

/* استایل نهایی و تضمین‌شده برای اعداد غول‌آسا */
.bg-number {
    position: absolute;
    top: -20px; /* کشیدن عدد به سمت بالا */
    left: -15px;
    font-size: 110px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    color: rgba(0, 0, 0, 0.04) !important; /* رنگ بسیار ملایم */
    line-height: 1;
    z-index: -1 !important; /* حتماً پشت متن قرار بگیرد */
    pointer-events: none;
    user-select: none;
    display: block !important; /* اطمینان از نمایش */
}

/* فاصله بین سکشن‌ها را کمی بیشتر کنیم تا اعداد تداخل نکنند */
.form-container-limited, .form-container-main {
    margin-top: 100px !important;
    position: relative;
}
/* اطلاعات مربوط به گواهینامه های قبلی سازمان */
/* استایل اختصاصی برای اینپوت تاریخ */
.prime-date-input {
    cursor: pointer;
    text-transform: uppercase;
}

/* تغییر رنگ آیکون تقویم در مرورگرهای Webkit */
.prime-date-input::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    z-index: 2;
}

/* نمایش مقدار تاریخ حتی وقتی فوکوس نیست (برای مرورگرهایی که تاریخ را مخفی می‌کنند) */
.prime-date-input:before {
    content: attr(placeholder);
    width: 100%;
}

/* فاصله بین رادیو باتن‌ها در موبایل */
@media (max-width: 600px) {
    .radio-flex-row {
        flex-direction: column;
        gap: 20px;
    }
}
/* تقویم */
/* Container */
.date-picker-wrapper {
    position: relative;
    cursor: pointer;
}

/* کانتینر اصلی تقویم - شیشه‌ای و مدرن */
.ts-datepicker {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
    z-index: 2000;
    
    /* انیمیشن خروج پیش‌فرض */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* وضعیت فعال شدن تقویم */
.ts-datepicker.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* هدر تقویم */
.ts-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ts-cal-header span {
    font-weight: 700;
    font-size: 16px;
    color: #1d1d1f;
}

.cal-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ff3b30;
    transition: background 0.3s;
}

.cal-nav-btn:hover {
    background: rgba(255, 59, 48, 0.1);
}

/* شبکه روزها */
.ts-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
}

.ts-cal-weekdays div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
}

.ts-cal-days {
    display: grid !important; /* اطمینان از گرید بودن */
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
    min-height: 200px; /* جلوگیری از غیب شدن کانتینر */
}

.ts-cal-days div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* روزهای ماه جاری */
.ts-cal-days div:not(.adj-day):hover {
    background: rgba(0, 0, 0, 0.05);
}

/* روز انتخاب شده */
.ts-cal-days div.selected {
    background: #ff3b30 !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(255, 59, 48, 0.3);
}

/* روزهای متعلق به ماه قبل/بعد */
.ts-cal-days div.adj-day {
    color: #d1d1d6;
    font-weight: 400;
}

/* هایلایت روز جاری */
.ts-cal-days div.is-today {
    color: #ff3b30;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 480px) {
    .ts-datepicker { width: 280px; left: 50%; transform: translateX(-50%) translateY(10px) scale(0.95); }
    .ts-datepicker.active { transform: translateX(-50%) translateY(0) scale(1); }
}
.ts-month-year-select {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.clickable-label {
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.clickable-label:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* گرید انتخاب ماه و سال */
.ts-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 10px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: none;
}

.ts-picker-grid::-webkit-scrollbar { display: none; }

.ts-picker-item {
    padding: 12px 5px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0,0,0,0.02);
}

.ts-picker-item:hover {
    background: #ff3b30;
    color: white;
}

.ts-picker-item.active {
    background: #ff3b30;
    color: white;
    font-weight: 700;
}
/* سوال مشاوره */
/* استایل خاص برای ردیف سوال در حالت اینلاین */
.custom-select-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px !important;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.4) !important;
}

.question-label-inline {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 500;
}

.radio-inline-group {
    display: flex;
    gap: 20px;
}

.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.radio-inline input[type="radio"] {
    accent-color: #ff3b30; /* رنگ برند تدبیرسازان */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-text {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

/* افکت فوکوس برای کل ردیف */
.input-wrapper:focus-within .question-label-inline {
    color: #ff3b30;
}

/* انیمیشن برای فیلد شرطی */
.conditional-field {
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* گرید ۴ ستونه برای بخش مشاوره */
.four-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* اصلاح نمایش لیبل برای اینپوت‌های نوع Date چون همیشه Placeholder دارند */
.date-field-wrapper .prime-label.top-fix {
    transform: translateY(-22px) scale(0.85);
    color: var(--brand-red);
}

.conditional-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border: 1px dashed rgba(255, 59, 48, 0.2);
    animation: slideDownIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 992px) {
    .four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .four-cols {
        grid-template-columns: 1fr;
    }
}
.ts-datepicker {
    position: absolute; /* بسیار مهم */
    z-index: 9999;
    display: none;
    /* همان استایل‌های قبلی Glassmorphism شما */
}

.ts-datepicker.active {
    display: block;
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
#global-ts-calendar {
    position: absolute;
    z-index: 999999; /* بالاترین لایه */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    /* سایر استایل‌های ظاهری که قبلا داشتیم */
}
.ts-component-container {
    position: relative; /* بسیار مهم برای قرارگیری تقویم */
}

.ts-datepicker {
    /* تنظیمات فعلی تو عالیه، فقط این مورد رو مطمئن شو */
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
}
.referral-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
    direction: ltr; /* تغییر به چپ‌چین برای انگلیسی */
    text-align: left;
}

.selection-text {
    font-family: 'Inter', 'Segoe UI', sans-serif; /* فونت انگلیسی مناسب */
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: 12px; /* فاصله از سمت چپ دایره رادیو */
    margin-right: 0;
}

/* برای اینکه دایره رادیو سمت چپ متن باشه */
.premium-selection {
    display: flex;
    align-items: center;
    flex-direction: row; /* اطمینان از ترتیب: دایره سپس متن */
    cursor: pointer;
}
/* کانتینر اصلی */
.declaration-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.declaration-title {
    color: #d32f2f;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* ردیف چک‌باکس */
.confirmation-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.confirmation-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    margin-left: 10px;
}

/* باکس اسکرول‌شونده (شبیه عکس مجید) */
.info-scroll-box {
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    height: 180px; /* ارتفاع ثابت برای ایجاد اسکرول در صورت نیاز */
    overflow-y: auto;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.7;
}

.box-header {
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.box-list {
    margin: 0 0 10px 20px;
    padding: 0;
}

.box-list li {
    margin-bottom: 5px;
}

.box-footer {
    margin-top: 10px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    font-style: italic;
}

/* استایل سفارشی چک‌باکس */
.premium-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.premium-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.premium-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

.premium-checkbox input:checked ~ .checkmark {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.premium-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.premium-checkbox .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.submit-section {
    margin-top: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.submit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-submit-premium {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.btn-submit-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
}

.btn-submit-premium:active {
    transform: translateY(-1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-submit-premium:hover .btn-icon {
    transform: translateX(5px) translateY(-5px); /* افکت پرواز آیکون موشک */
}

.submit-note {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* خط جداکننده ملایم */
.form-divider-light {
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 30px 0;
    width: 100%;
}
/* وضعیت اولیه المان‌ها قبل از دیده شدن */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: blur(5px); /* افکت بلور ملایم برای لودینگ حرفه‌ای‌تر */
    will-change: transform, opacity;
}

/* وضعیتی که المان نمایان می‌شود */
.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* انیمیشن پله‌ای (Staggered) برای فیلدهای داخل گرید */
.field-container {
    transition-delay: calc(var(--delay) * 100ms);
}

/* افکت لودینگ برای دکمه سابمیت */
.btn-submit-premium.is-loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
    color: transparent !important;
}

.btn-submit-premium.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* اصلاح چیدمان اینپوت‌ها در حالت موبایل برای مجید */
@media (max-width: 768px) {
    /* هدف قرار دادن کانتینر فیلدها در بخش‌های مدیریت */
    .form-grid-layout, 
    .input-row-wrapper,
    .four-cols,
    .three-cols {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; /* فاصله بین اینپوت‌های زیر هم */
    }

    /* اطمینان از اینکه هر اینپوت تمام عرض ردیف را می‌گیرد */
    .input-wrapper, 
    .field-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }

    /* تنظیم عرض Prefix که معمولا کوچک‌تر در نظر گرفته می‌شود */
    .input-wrapper.prefix-size {
        width: 100% !important;
    }
}
